// $Id: types.hpp 2 2009-09-02 08:47:42Z joseph2002 $
/*
 * Copyright 2008 Joseph Wu
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
 *
 * For more information, see http://xpcomplus.sourceforge.net
 */

#ifndef XPCOM_API_NSPR_TYPES_HPP
#define XPCOM_API_NSPR_TYPES_HPP

#include "config.hpp"
#include <xpcom/types.hpp>

// _NSPR_BIT/_NSPR_BITMASK
// Bit masking macros.  XXX n must be <= 31 to be portable
#define _NSPR_BIT(n)        (( ::xpcom::uint32_t)1 << (n))
#define _NSPR_BITMASK(n)    (_NSPR_BIT(n) - 1)

#endif // XPCOM_API_NSPR_TYPES_HPP
